package BookManage.Operation;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 强仔
 * Date: 2022-01-19
 * Time: 10:44
 */
public class BorrowOperation implements IOperation {
    @Override
    public void work() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入所借的书的Id");
        boolean ret = bookDao.borrowBook(scanner.nextInt());
        if(ret){
            System.out.println("借阅成功");
        }else{
            System.out.println("借书失败");
        }
    }
}
